package cn.xinfei.xdecision.common.model.analyse.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("t_analyse_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AnalyseInfoModel extends Model<AnalyseInfoModel> {
    //主键id
    @TableId(type= IdType.AUTO)
    private Long id;

    private String quotaName;
    private String quotaCode;
    /**
     * 0int,1百分比
     */
    private int quotaType;
    private String scene;
    /**
     * 指标主维度，如引擎id，组件id，场景，决策记录等
     */
    private String quotaPrimary;

    /**
     * 指标从维度，如引擎id，组件id，场景，决策记录等
     */
    private String quotaSecondary;

    /**
     * 指标统计的算子:COUNT，AVG，MAX，MIN
     */
    private String operator;
    /**
     * 0不去重，允许有误差；1精准去重
     */
    private int duplicate;


    /**
     * MINUTE，HOUR，DAY,WEEK,MONTH,QUARTER,YEAR
     * '指标值统计时间窗口'
     */
    private String windows;

    /**
     * ACCURATE,MINUTE，HOUR，DAY,WEEK,MONTH,QUARTER,YEAR
     * '指标值统计时间窗口'
     */
    private String cell;

    //创建日期
    private Date createTime;
    //修改日期
    private Date updateTime;

}
